﻿#pragma execution_character_set("utf-8")
#ifndef XXL_H
#define XXL_H

#include <QDialog>
#include <QToolButton>

namespace Ui {
class xxl;
}

class xxl : public QDialog
{
    Q_OBJECT

public:
    explicit xxl(QWidget *parent = nullptr);
    ~xxl();

signals:
    void restart();

private:
    void init();

    void onconnect();

    void addbutton(const QString& str);

    void updatabutstate();

    void treefinished(const QString& str);

    void cleargame();

    void returengame();

    bool isClickedable(QToolButton *butchild);

private:
    Ui::xxl *ui;
    QStringList strList;
};

#endif // XXL_H
